from typing import Union

from fastapi import UploadFile
from pydantic import BaseModel


class FileManagerSchema(BaseModel):
    dir: Union[list, None]


class FileManagerUploadSchema(BaseModel):
    filename: str


class FileManagerMkdirSchema(BaseModel):
    dirname: str
    path: list


class FileManagerCallbackSchema(BaseModel):
    key: str
    status: int
    actions: list
    token: str
    url: Union[str, None]
    